#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
#include<string.h>
void my_memcpy(void* destination, void* source, size_t num);
int main()
{
	int a[5] = {1,2,3,4,5};
	int b[10];
	my_memcpy(b, a,sizeof(a));
	for (int i = 0; i < sizeof(b) / sizeof(b[0]); i++)
		printf("%d\n", b[i]);
	return 0;
}
void my_memcpy(void* destination, void* source, size_t num)
{
	while (num--)
	{
		*(char*)destination = *(char*)source;
		destination = (char*)destination + 1;
		source = (char*)source + 1;
	}
}